package com.dcw.lixb.designmode.nullobj;

/**
 * @author lixiaobin
 * @date 2020-07-29 15:40:01
 * @desc 描述信息
 */
public class NullobjMain {
    public static void main(String[] args) {
        AbstractCustomer rob = CustomerFactory.getCustomer("rob");
        AbstractCustomer job = CustomerFactory.getCustomer("job");
        AbstractCustomer lily = CustomerFactory.getCustomer("lily");

        System.out.println("Customers:");
        System.out.println(rob.getName());
        System.out.println(job.getName());
        System.out.println(lily.getName());
    }
}
